From: kaf24@localhost.localdomain Date: Sun, 22 Oct 2006 16:34:24 +0000 (+0100) Subject: [HVM] Replace hvm_prod_vcpu() with calls to generic (and correct) vcpu_kick(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15589^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=269af93bd7178ca7a03d30bb0b1199877cc104d0;p=xen.git [HVM] Replace hvm_prod_vcpu() with calls to generic (and correct) vcpu_kick(). Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/intercept.c b/xen/arch/x86/hvm/intercept.c index c83c2dd92a..288cf2724d 100644 --- a/xen/arch/x86/hvm/intercept.c +++ b/xen/arch/x86/hvm/intercept.c @@ -260,12 +260,11 @@ int register_io_handler(unsigned long addr, unsigned long size, return 1; } -/* hooks function for the HLT instruction emulation wakeup */ +/* Hook function for the HLT instruction emulation wakeup. */ void hlt_timer_fn(void *data) { struct vcpu *v = data; - - hvm_prod_vcpu(v); + vcpu_kick(v); } static __inline__ void missed_ticks(struct periodic_time *pt) diff --git a/xen/arch/x86/hvm/platform.c b/xen/arch/x86/hvm/platform.c index d7e63ffa99..e52464c0dc 100644 --- a/xen/arch/x86/hvm/platform.c +++ b/xen/arch/x86/hvm/platform.c @@ -732,13 +732,6 @@ static void hvm_send_assist_req(struct vcpu *v) notify_via_xen_event_channel(v->arch.hvm_vcpu.xen_port); } - -/* Wake up a vcpu whihc is waiting for interrupts to come in */ -void hvm_prod_vcpu(struct vcpu *v) -{ - vcpu_unblock(v); -} - void send_pio_req(unsigned long port, unsigned long count, int size, long value, int dir, int df, int pvalid) { diff --git a/xen/arch/x86/hvm/vlapic.c b/xen/arch/x86/hvm/vlapic.c index 533b6c8237..8c121ee2c3 100644 --- a/xen/arch/x86/hvm/vlapic.c +++ b/xen/arch/x86/hvm/vlapic.c @@ -231,7 +231,8 @@ static int vlapic_accept_irq(struct vcpu *v, int delivery_mode, "level trig mode for vector %d\n", vector); vlapic_set_vector(vector, vlapic->regs + APIC_TMR); } - hvm_prod_vcpu(v); + + vcpu_kick(v); result = 1; break; diff --git a/xen/include/asm-x86/hvm/support.h b/xen/include/asm-x86/hvm/support.h index 72b1ca51f4..1c557c228f 100644 --- a/xen/include/asm-x86/hvm/support.h +++ b/xen/include/asm-x86/hvm/support.h @@ -147,8 +147,6 @@ void hlt_timer_fn(void *data); void hvm_do_hypercall(struct cpu_user_regs *pregs); -void hvm_prod_vcpu(struct vcpu *v); - void hvm_hlt(unsigned long rflags); #endif /* __ASM_X86_HVM_SUPPORT_H__ */